package com.zhijiaoyun.service;

import com.zhijiaoyun.model.WebsiteLink;
import com.zhijiaoyun.model.dto.PageList;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public interface IWebsiteLinkService {

	WebsiteLink getWebsiteLinkByName(String name);

	WebsiteLink getWebsiteLinkByLinkUrl(String linkUrl);

	void addWebsiteLink(WebsiteLink websiteLink);

	WebsiteLink getWebsiteLinkByLinkId(Long linkId);

	WebsiteLink getWebsiteLinkByNameNotLinkId(Long linkId, String name);

	WebsiteLink getWebsiteLinkByLinkUrlNotLinkId(Long linkId, String linkUrl);

	void modifyWebsiteLink(WebsiteLink websiteLink);

	PageList<WebsiteLink> pageByParams(Integer pageIndex, String name, String linkUrl);

	void deleteWebsiteLink(WebsiteLink websiteLink);

}
